package com.oracle.dao.impl;

import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;

import com.oracle.dao.StudentDao;
import com.oracle.model.Student;

public class StudentDaoImpl implements StudentDao{
	private List<Object> list;
	private Set<Object> set;
	private Map<String,Object> map;
	private Properties properties;
	
	public List<Object> getList() {
		return list;
	}

	public void setList(List<Object> list) {
		this.list = list;
	}

	public Set<Object> getSet() {
		return set;
	}

	public void setSet(Set<Object> set) {
		this.set = set;
	}

	public Map<String, Object> getMap() {
		return map;
	}

	public void setMap(Map<String, Object> map) {
		this.map = map;
	}
	
	

	public Properties getProperties() {
		return properties;
	}

	public void setProperties(Properties properties) {
		this.properties = properties;
	}

	@Override
	public void save(Student student) {
//		System.out.println(map.size());
//		for(Map.Entry<String, Object> entry:map.entrySet()){
//			System.out.println(entry.getKey()+":"+entry.getValue());
//		}
		System.out.println(properties.getProperty("aaa"));
		System.out.println(student+" mysql saved");
	}
	
}
